package com.example.demo.redis;

public class RedisKey {

    // 缓存字符串

    public static final String REDIS_CACHE = "RedisCache:{methodName}";  //方法的绝对定位
    public static final String TOKEN = "token:{token}";
    public static final String USER_TOKEN = "user:token:{userId}";
    public static final String TOKEN_WX = "token:wx:{token}";
    public static final String USER_TOKEN_WX = "user:token:wx:{userId}";
    public static final String USER_CODE = "user:{number}";
    public static final String CONSULTANT_QUEUE = "consultant:{id}"; // redis缓存咨询师排队的键，将{id}替换为咨询师id
    public static final String CONSULTANT_ONLINE_SET = "consultant:online:set";
    public static final String IM_SIGN = "{id}:im:sign";
    public static final String USER_ONLINE_SET = "user:online:set";
}
